package com.springark.ms.commons;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * @author hankchan
 * @since 2019/5/10
 */
public class MsApiResponse<T> implements Serializable {
    private static final long serialVersionUID = -5223434566011189690L;

    private T data;
    private Long code;
    private String msg;
    @JsonProperty("request_id")
    private String requestId;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
}
